import axios from 'axios'
const instance = axios.create()
instance.interceptors.request.use(config => {
    config.timeout = 10000
    return config
})
instance.interceptors.response.use(ret => ret.data,err => Promise.reject(err))

export const get = (url,config={}) => instance.get(url,config)